//2009/09/01 23:52:40
#include <string>
#include <iostream>
#include <vector>
#include <map>
#include <queue>
#include <sstream>
#include <algorithm>

using namespace std;

class ParallelSpeedup
{
public:
    int numProcessors(int k, int overhead)
    {
        long long mmin = -1;
        int idx = -1;
        for (int i=1; i<=k; i++)
        {
            long long temp = (long long) overhead * i * (i-1) / 2 + (k + i-1) / i;
            cout << temp << endl;
            if (mmin > temp || mmin == -1)
            {
                mmin = temp;
                idx = i;
            }
        }
        return idx;
    }
};
